package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.BasicServiceLogMapper;
import com.whq.entity.BasicServiceLog;
import com.whq.service.BasicServiceLogService;

@Service(value = "tdBasicServiceLogService")
public class BasicServiceLogServiceImpl implements BasicServiceLogService {

    @Autowired
    private BasicServiceLogMapper<BasicServiceLog>tdBasicServiceLogMapper;
    
    @Override
    public Integer insertSelective(BasicServiceLog tdBasicServiceLog) throws Exception {
           return this.tdBasicServiceLogMapper.insertSelective(tdBasicServiceLog);
        }

    @Override
    public Integer insertBatch(List<BasicServiceLog> tdBasicServiceLog) throws Exception {
           return this.tdBasicServiceLogMapper.insertBatch(tdBasicServiceLog) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdBasicServiceLogMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdBasicServiceLogMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(BasicServiceLog tdBasicServiceLog) {
           return this.tdBasicServiceLogMapper.updateByPrimaryKeySelective(tdBasicServiceLog);
    }

    @Override
    public BasicServiceLog findById(Object id) {
           return (BasicServiceLog) this.tdBasicServiceLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<BasicServiceLog> selectByCondition(BasicServiceLog tdBasicServiceLog) {
           return (List<BasicServiceLog>) this.tdBasicServiceLogMapper.selectByCondition(tdBasicServiceLog);
    }

    @Override
    public Integer selectCountByCondition(BasicServiceLog tdBasicServiceLog) {
           return  this.tdBasicServiceLogMapper.selectCountByCondition(tdBasicServiceLog);
    }

}
